package com.uum.blog.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.uum.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author Tsang_yc
 * @since 2022-02-10
 */
@Data
@Accessors(chain = true)
@TableName("comment_like")
@ApiModel(value = "评论的点赞对象", description = "")
public class CommentLike {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "点赞主键ID")
    @TableId(value = "like_id", type = IdType.AUTO)
    private Long likeId;

    @ApiModelProperty(value = "点赞的评论id")
    private Long commentId;

    @ApiModelProperty(value = "点赞人的id")
    private Long userId;

    @TableField(exist = false)
    private Long blogId;        //博客ID
}
